<?php
$this->pageTitle=Yii::app()->name . ' - Upload ';
$this->breadcrumbs=array(
	'Upload',
);
?>

<h1>Upload</h1>

<?php if(Yii::app()->user->hasFlash('upload')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('upload'); ?>
</div>

<?php else: ?>

<p>
Upload de arquivo txt
</p>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm'); ?>


	<?php echo $form->errorSummary($model); ?>
	<div class="row"><?php echo $form->labelEx($model,'Idioma'); ?>
	<?php $lang=array(
			'1'=>'English',
			'2'=>'Português',
			'3'=>'Español',
		);
	
	echo $form->dropDownList($model,'lang', $lang); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'Texto'); ?>
		<?php echo $form->textArea($model,'texto',array('rows'=>6, 'cols'=>50)); ?>
	</div>
		<div class="row">
		<?php echo $form->labelEx($model,'OU'); ?>
		</div>
	<div class="row">
		<?php echo $form->labelEx($model,'Arquivo'); ?>
		<?php echo $form->fileField($model,'arquivo'); ?>
	</div>


	<div class="row submit">
		<?php echo CHtml::submitButton('Analise'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->

<?php endif; ?>
